﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_BBS_AttachmentToReplay]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_BBS_AttachmentToReplay];
GO
CREATE PROCEDURE [dbo].[sproc_BBS_AttachmentToReplay]
@filename nvarchar(500),
@replayid int
/*-------------------------------------
功能：记录回复的附件信息
参数：
    @filename    文件名
    @replayid    贴子id
-------------------------------------*/
AS
    INSERT INTO UDS_BBS_Replay_Attachment(replay_id,filename)
    VALUES(@replayid,@filename)